package cn.com.dashihui.web.service;

import java.util.List;

import cn.com.dashihui.web.dao.Seller;
import cn.com.dashihui.web.dao.SendSeller;

public class SendSellerService {
	/**
	 *查询所有的sendSeller
	 */
	public List<SendSeller> findSendSeller(int sellerid){
		return SendSeller.me().find("SELECT * FROM t_dict_sendseller where sellerid = ?",sellerid);
	}

	public boolean addSeller(Seller newObject){
		return newObject.save();
	}
	
	public SendSeller findById(int id) {
		return SendSeller.me().findFirst("select * from t_dict_sendseller where id=?",id);
	}

	public boolean delete(int id) {
		// TODO Auto-generated method stub
		return SendSeller.me().deleteById(id);
	}

	public Seller findSeller(int id) {
		// TODO Auto-generated method stub
		return Seller.me().findFirst("select * from t_bus_seller where userid = ?" ,id);
	}
}
